import React, { Component } from 'react'
import Item from '../Item'
export default class List extends Component {
  render() {
    const {value,updateItem,deleteItem} = this.props
    return (
      <ul className="todo-main">
        {
          value.map(item =><Item {...item} key={item.id} updateItem={updateItem} deleteItem={deleteItem}/>)
        }
      </ul>
    )
  }
}
